<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
</block>
<block name="content" > 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <form class="Huiform" target="_self">
                        <div class="layui-input-inline">
                            <span class="btn-upload form-group">
                                <a class="search" data-url="{:U('index')}">选择流程分类</a>
                                <select name="flowSort" class="layui-input search_input" style="width:200px;display:inline-block">
                                    <foreach name="sorts" item="sort">
                                        <option value="{$sort.sort_id}">{$sort.sort_name}</option>
                                    </foreach>
                                </select>
                                <input type='hidden' id='url' value='{:U("getFlowSort")}'>
                            </span>
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="plan_name" placeholder="流程名" value="{$flow}" class="layui-input search_input">
                        </div>
                        <div class="layui-input-inline">
                            <a class="layui-btn search_btn search" data-url="{:U('index')}"> 查询</a>
                        </div>
                    </form>
                </blockquote>
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
                    <!-- 列表 -->
                    <div class="layui-tab-item layui-field-box layui-show">
                        <table class="layui-table table-hover ftable" lay-even="" lay-skin="nob">
                            <thead>
                            <!--<th><input type="checkbox" name="" value=""></th>-->
                            <th style="width:110px">流程编号</th>
                            <th>流程名</th>
                            <th>排序</th>
                            <th>首页显示</th>
                            <th>图标</th>
                            <th>图标颜色</th>
                            <th>操作</th>
                            </thead>
                            <tbody class="tbody">
                            <notempty name="flows">
                                <foreach name="flows" item="row">
                                    <tr class="text-c">
                                        <!--<td><input class="more" name="id[]" type="checkbox" value="{$row.flow_id}"></td>-->
                                        <td>{$row.flow_id}</td>
                                        <td>{$row.flow_name}</td>
                                        <td>{$row.flow_no}</td>
                                        <td>{$row['is_show']?'是':'否'}</td>
                                        <td class="grids-icon"><i class="iconfont icon1">&#x{$row.icon};</i></td>
                                        <td>{$row.color}</td>
                                        <td class="f-14 product-brand-manage">
                                            <a style="text-decoration:none" href="{:U('save',array('id'=>$row[flow_id]))}" title="编辑"><i class="iconfont icon-xiugai" style="font-size:16px;"> </i></a> 
                                            <!--<a style="text-decoration:none" class="ml-5 delete" data-url="{:U('delete',array('id'=>$row['id']))}"  title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a></td>-->
                                    </tr>
                                </foreach>
                                <else/>
                                <tr><td colspan="2" style="border-bottom: 1px solid #fff;border-left: 1px solid #fff;text-align: left">暂无数据</td></tr>
                            </notempty>
                            </tbody>
                        </table>
                        <div class="larry-table-page clearfix">
                            <!--<a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>-->
                            <div id="page" class="page">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/admin.js"></script>
    <script type="text/javascript">
        $(initFlow());

    </script>    
</block>

